OperatingSystem Property (Session Object) 

The OperatingSystem property returns the name and version number of the current operating system. Read-only.

Syntax

objSession.OperatingSystem

Data Type

String

Remarks

The OLE Messaging Library returns strings in the following formats:

Operating system

String value

Microsoft Windows NT

Microsoft  Windows NT  X.xx

Microsoft Windows for Workgroups

Microsoft  Windows  X.xx

 

The X.xx values are replaced with the actual version numbers. Note that Microsoft Windows for Workgroups version 3.11 returns the string  Microsoft  Windows  3.10.  This is a feature of that operating system rather than a feature of the OLE Messaging Library.

Example

This example displays the name of the operating system:

' from the function Session_OperatingSystem

' assume objSession is a valid Session object

    MsgBox "Operating system = " & objSession.OperatingSystem

 

See Also

Version, Property (Session Object)